# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=wayshot
pkgver=1.3.1
pkgrel=0
pkgdesc="A native screenshot tool for wlroots based compositors"
url="https://github.com/waycrate/wayshot"
# s390x: no desktop on this arch
arch="all !s390x"
license="BSD-2-Clause"
makedepends="cargo cargo-auditable"
source="https://github.com/waycrate/wayshot/archive/$pkgver/wayshot-$pkgver.tar.gz"
options="!check"  # no tests provided


prepare() {
	default_prepare

	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo auditable build --frozen --release
}

package() {
	install -D -m755 target/release/wayshot -t "$pkgdir"/usr/bin/
}

sha512sums="
395f3e03987d3dabaffaf898b05c1a1400a49664f07ea4bfd1920f106af870a8a38606d9cbd06040501ea6b6a6d1ee39e95f2e7826a08f7c4285ffd658e415af  wayshot-1.3.1.tar.gz
"
